import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const CONSUL: AppRouteRecordRaw = {
  path: '/consul',
  name: 'consul',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.consul',
    requiresAuth: false,
    icon: 'icon-book',
    order: 1,
  },
  children: [
    {
      path: 'search-consul',
      name: 'SearchConsul',
      component: () => import('@/views/consul/search-table/index.vue'),
      meta: {
        locale: 'menu.consul.search',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'preview',
      name: 'ConsulPreview',
      component: () => import('@/views/consul/preview/index.vue'),
      meta: {
        locale: 'menu.consul.preview',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default CONSUL;
